Optimal. Leaf size=82 \[ \frac {1}{7 (1-x)^{7/2} \sqrt {1+x}}+\frac {4}{35 (1-x)^{5/2} \sqrt {1+x}}+\frac {4}{35 (1-x)^{3/2} \sqrt {1+x}}+\frac {8 x}{35 \sqrt {1-x} \sqrt {1+x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {47, 39}
\begin {gather*} \frac {8 x}{35 \sqrt {1-x} \sqrt {x+1}}+\frac {4}{35 (1-x)^{3/2} \sqrt {x+1}}+\frac {4}{35 (1-x)^{5/2} \sqrt {x+1}}+\frac {1}{7 (1-x)^{7/2} \sqrt {x+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 39
Rule 47
Rubi steps
\begin {align*} \int \frac {1}{(1-x)^{9/2} (1+x)^{3/2}} \, dx &=\frac {1}{7 (1-x)^{7/2} \sqrt {1+x}}+\frac {4}{7} \int \frac {1}{(1-x)^{7/2} (1+x)^{3/2}} \, dx\\ &=\frac {1}{7 (1-x)^{7/2} \sqrt {1+x}}+\frac {4}{35 (1-x)^{5/2} \sqrt {1+x}}+\frac {12}{35} \int \frac {1}{(1-x)^{5/2} (1+x)^{3/2}} \, dx\\ &=\frac {1}{7 (1-x)^{7/2} \sqrt {1+x}}+\frac {4}{35 (1-x)^{5/2} \sqrt {1+x}}+\frac {4}{35 (1-x)^{3/2} \sqrt {1+x}}+\frac {8}{35} \int \frac {1}{(1-x)^{3/2} (1+x)^{3/2}} \, dx\\ &=\frac {1}{7 (1-x)^{7/2} \sqrt {1+x}}+\frac {4}{35 (1-x)^{5/2} \sqrt {1+x}}+\frac {4}{35 (1-x)^{3/2} \sqrt {1+x}}+\frac {8 x}{35 \sqrt {1-x} \sqrt {1+x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 40, normalized size = 0.49 \begin {gather*} \frac {-13+4 x+20 x^2-24 x^3+8 x^4}{35 (-1+x)^3 \sqrt {1-x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 72, normalized size = 0.88
method | result | size |
gosper | \(-\frac {8 x^{4}-24 x^{3}+20 x^{2}+4 x -13}{35 \sqrt {1+x}\, \left (1-x \right )^{\frac {7}{2}}}\) | \(35\) |
risch | \(\frac {\sqrt {\left (1+x \right ) \left (1-x \right )}\, \left (8 x^{4}-24 x^{3}+20 x^{2}+4 x -13\right )}{35 \sqrt {1-x}\, \sqrt {1+x}\, \left (-1+x \right )^{3} \sqrt {-\left (1+x \right ) \left (-1+x \right )}}\) | \(61\) |
default | \(\frac {1}{7 \left (1-x \right )^{\frac {7}{2}} \sqrt {1+x}}+\frac {4}{35 \left (1-x \right )^{\frac {5}{2}} \sqrt {1+x}}+\frac {4}{35 \left (1-x \right )^{\frac {3}{2}} \sqrt {1+x}}+\frac {8}{35 \sqrt {1-x}\, \sqrt {1+x}}-\frac {8 \sqrt {1-x}}{35 \sqrt {1+x}}\) | \(72\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 134 vs.
\(2 (58) = 116\).
time = 0.28, size = 134, normalized size = 1.63 \begin {gather*} \frac {8 \, x}{35 \, \sqrt {-x^{2} + 1}} - \frac {1}{7 \, {\left (\sqrt {-x^{2} + 1} x^{3} - 3 \, \sqrt {-x^{2} + 1} x^{2} + 3 \, \sqrt {-x^{2} + 1} x - \sqrt {-x^{2} + 1}\right )}} + \frac {4}{35 \, {\left (\sqrt {-x^{2} + 1} x^{2} - 2 \, \sqrt {-x^{2} + 1} x + \sqrt {-x^{2} + 1}\right )}} - \frac {4}{35 \, {\left (\sqrt {-x^{2} + 1} x - \sqrt {-x^{2} + 1}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.45, size = 86, normalized size = 1.05 \begin {gather*} \frac {13 \, x^{5} - 39 \, x^{4} + 26 \, x^{3} + 26 \, x^{2} - {\left (8 \, x^{4} - 24 \, x^{3} + 20 \, x^{2} + 4 \, x - 13\right )} \sqrt {x + 1} \sqrt {-x + 1} - 39 \, x + 13}{35 \, {\left (x^{5} - 3 \, x^{4} + 2 \, x^{3} + 2 \, x^{2} - 3 \, x + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 30.97, size = 425, normalized size = 5.18 \begin {gather*} \begin {cases} - \frac {8 \sqrt {-1 + \frac {2}{x + 1}} \left (x + 1\right )^{4}}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} + \frac {56 \sqrt {-1 + \frac {2}{x + 1}} \left (x + 1\right )^{3}}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} - \frac {140 \sqrt {-1 + \frac {2}{x + 1}} \left (x + 1\right )^{2}}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} + \frac {140 \sqrt {-1 + \frac {2}{x + 1}} \left (x + 1\right )}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} - \frac {35 \sqrt {-1 + \frac {2}{x + 1}}}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} & \text {for}\: \frac {1}{\left |{x + 1}\right |} > \frac {1}{2} \\- \frac {8 i \sqrt {1 - \frac {2}{x + 1}} \left (x + 1\right )^{4}}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} + \frac {56 i \sqrt {1 - \frac {2}{x + 1}} \left (x + 1\right )^{3}}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} - \frac {140 i \sqrt {1 - \frac {2}{x + 1}} \left (x + 1\right )^{2}}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} + \frac {140 i \sqrt {1 - \frac {2}{x + 1}} \left (x + 1\right )}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} - \frac {35 i \sqrt {1 - \frac {2}{x + 1}}}{- 1120 x + 35 \left (x + 1\right )^{4} - 280 \left (x + 1\right )^{3} + 840 \left (x + 1\right )^{2} - 560} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.19, size = 79, normalized size = 0.96 \begin {gather*} \frac {\sqrt {2} - \sqrt {-x + 1}}{32 \, \sqrt {x + 1}} - \frac {\sqrt {x + 1}}{32 \, {\left (\sqrt {2} - \sqrt {-x + 1}\right )}} - \frac {{\left ({\left ({\left (93 \, x - 523\right )} {\left (x + 1\right )} + 1400\right )} {\left (x + 1\right )} - 1120\right )} \sqrt {x + 1} \sqrt {-x + 1}}{560 \, {\left (x - 1\right )}^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.36, size = 68, normalized size = 0.83 \begin {gather*} -\frac {4\,x\,\sqrt {1-x}-13\,\sqrt {1-x}+20\,x^2\,\sqrt {1-x}-24\,x^3\,\sqrt {1-x}+8\,x^4\,\sqrt {1-x}}{35\,{\left (x-1\right )}^4\,\sqrt {x+1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________